import request from '@/utils/request'

// 查询空气质量天列表
export function listAirQualityDay(query) {
  return request({
    url: '/aqi/airQualityDay/list',
    method: 'get',
    params: query
  })
}

// 查询空气质量天详细
export function getAirQualityDay(id) {
  return request({
    url: '/aqi/airQualityDay/' + id,
    method: 'get'
  })
}

// 新增空气质量天
export function addAirQualityDay(data) {
  return request({
    url: '/aqi/airQualityDay',
    method: 'post',
    data: data
  })
}

// 修改空气质量天
export function updateAirQualityDay(data) {
  return request({
    url: '/aqi/airQualityDay',
    method: 'put',
    data: data
  })
}

// 删除空气质量天
export function delAirQualityDay(id) {
  return request({
    url: '/aqi/airQualityDay/' + id,
    method: 'delete'
  })
}
